package com.prs.crm.domain.document;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

@Entity
@Table(name="docu_draftformworktype")
public class DraftFormworkType extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String name;
	private String remark;
	@ManyToOne
	private DraftFormworkType parent;
	@OneToMany(mappedBy="parent")
	private Set<DraftFormworkType> childs;
	public DraftFormworkType getParent() {
		return parent;
	}
	public void setParent(DraftFormworkType parent) {
		this.parent = parent;
	}
	public Set<DraftFormworkType> getChilds() {
		return childs;
	}
	public void setChilds(Set<DraftFormworkType> childs) {
		this.childs = childs;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
